{:Addons::hook('home_index_left_top_outline')}
<div class="user_app">
	{:Addons::hook('home_index_left_top')}
	<div class="user_app_top"></div>
<!--个人信息区-->

    <div class="user_app_box">
    <!--头像区-->
    <div class="userinfo">
        <div class="userpic" onmouseover="this.className='userpic over'" onmouseout="this.className='userpic'" >
            <span id="my_face"><space uid="mid" class="nocard">{uavatar}</space></span>
        </div>
        <div class="user_name">
            <h2>{$userInfoCache['uname']}<php>Addons::hook('user_name_end', array('uid'=>$mid, 'html'=>&$user_name_end));echo $user_name_end;</php>{$mid|getUserGroupIcon}</h2>
            <!--关注-->
            <div class="user_follow">
            <span><a href="{:U('home/space/follow',array('type'=>'following', 'uid'=>$mid))}"><strong>{$userInfoCache['following']}</strong><br />关注</a></span>
            <span class="app_lineL"><a href="{:U('home/space/follow',array('type'=>'follower', 'uid'=>$mid))}"><strong>{$userInfoCache['follower']}</strong><br />粉丝</a></span>
            <span class="app_lineL"><a href="{:U('home/space/index',array('uid'=>$uid))}"><strong id="miniblog_count">{$userInfoCache['miniNum']}</strong><br />微博</a></span>
            </div>
            <!--关注 end-->
        </div>
    </div>
    <!--头像区 End-->
    {:Addons::hook('home_index_left_avatar_bottom')}
    </div>

<!--个人信息区 End-->
    <div class="app_line">
    <div class="celerity_menu">
  	<ul>
        <li><a href="{:U('home/user/index')}" {:getMenuState('user/index')}><span class="ico_side ico_home"></span>我的首页</a></li>
        <li><a href="{:U('home/user/atme')}" {:getMenuState('user/atme')}><span class="ico_side ico_atme"></span>提到我的 
        <span id="app_left_count_atme"><gt name="userCount['atme']" value="0">(<font color="red">{$userCount.atme}</font>)</gt></span>
        </a>
        </li>
        <li><a href="{:U('home/user/collection')}" {:getMenuState('user/collection')}><span class="ico_side ico_favorites"></span>我的收藏</a></li>
        <li><a href="{:U('home/user/comments')}" {:getMenuState('user/comments')}><span class="ico_side ico_comment"></span>我的评论 
        <span id="app_left_count_comment"><gt name="userCount['comment']" value="0">(<font color="red">{$userCount.comment}</font>)</gt></span>
        </a>
        </li>
        <li><a href="{:U('home/message/index')}" {:getMenuState('message/index')}><span class="ico_side ico_massage"></span>我的私信</a></li>
        <if condition="Addons::requireHooks('home_index_left_tab')">
            {:Addons::hook('home_index_left_tab', array(&$menu))}
            <volist name="menu" id="vo">
                <li><a href="{:U('home/user/' . $vo['act'])}" {:getMenuState('user/' . $key)}>{$vo['name']}</a></li>
            </volist>
        </if>
  	</ul>
  </div>
  </div>


<!-- 用户应用列表-->
  <div class="app_line">
  <ul class="app_menu_l">
        <volist name="install_app" id="vo">
            <php>if(empty($vo['app_alias'])) continue;</php>
            <li>
                <a href="{$vo.app_entry}" title="{$vo.description}" class="user_app_link" >
                <img src="{$vo.large_icon_url}" class="user_app_icon" /><h4>{$vo.app_alias}</h4></a>

            </li>
        </volist>
    </ul>
    <div class="app_add">
    <span class="right"><span class="ico_app_manage"></span><a href="{:U('home/Index/editapp')}">管理</a></span>
    <span><span class="ico_app_add"></span><a href="{:U('home/Index/addapp')}">添加</a></span>
    </div>
  </div>
<!-- 用户应用列表 End-->
  {:Addons::hook('home_index_left_middle')}
  {:Addons::hook('home_index_left_bottom')}
    <php>if (Addons::requireHooks('home_index_left_advert')) {</php>
    	{:Addons::hook('home_index_left_advert', array($ts['ad']['left']))}
    <php>} else {</php>
		<volist name="ts['ad']['left']" id="vo">
	    <div class="ad_left"><div class="ke-post">{$vo.content}</div></div>
		</volist>
    <php>}</php>
	</div>
<php>
function getMenuState($type){
	$type = split('/',$type);
	if( strtolower(MODULE_NAME)==strtolower($type[0]) && ( strtolower(ACTION_NAME)==strtolower($type[1]) || $type[1]=='*') ){
		return 'class="on"';
	}
}
</php>